#include "headers.h"

OSL_IMAGE *map,*menui, *rip, *win;
OSL_IMAGE *play, *play2, *load, *load2, *credits, *credits2, *exiti, *exiti2, *menubg;
OSL_IMAGE *player, *dragon, *map2, *bar, *choose;
OSL_SOUND *music;


int LoadImages()
{
    music = oslLoadSoundFile("./Res/music/final.bgm", OSL_FMT_STREAM);
	menui = oslLoadImageFilePNG("./Res/gfx/menui.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 5");
	win = oslLoadImageFilePNG("./Res/gfx/win.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	menubg = oslLoadImageFilePNG("./Res/gfx/menu.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 14");
	rip = oslLoadImageFilePNG("./Res/gfx/rip.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 25");
	map = oslLoadImageFilePNG("./Res/map/map.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);	
	oslPrintf_xy(100,100,"Loaded: 27");
	map2 = oslLoadImageFilePNG("./Res/map/map2.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	// Loading menu icons..
	oslPrintf_xy(100,100,"Loaded: 32");
	choose = oslLoadImageFilePNG("./Res/gfx/choose.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 49");
	bar = oslLoadImageFilePNG("./Res/gfx/bar.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 55");
	play = oslLoadImageFilePNG("./Res/gfx/icons/play.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 60");
	play2 = oslLoadImageFilePNG("./Res/gfx/icons/play2.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 67");
	load = oslLoadImageFilePNG("./Res/gfx/icons/load.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 70");
	credits = oslLoadImageFilePNG("./Res/gfx/icons/credits.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 75");
	exiti = oslLoadImageFilePNG("./Res/gfx/icons/exit.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 79");
	load2 = oslLoadImageFilePNG("./Res/gfx/icons/load2.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 82");
	credits2 = oslLoadImageFilePNG("./Res/gfx/icons/credits2.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 87");
	exiti2 = oslLoadImageFilePNG("./Res/gfx/icons/exit2.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	//Loading all storm stuff
	oslPrintf_xy(100,100,"Loaded: 93");
	player = oslLoadImageFilePNG("./Res/sprites/player.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	oslPrintf_xy(100,100,"Loaded: 100");
	dragon = oslLoadImageFilePNG("./Res/sprites/dragon.png", OSL_IN_RAM | OSL_SWIZZLED, OSL_PF_5551);
	return 0;
}